package com.simple.datax.db.mybatis.model;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author paladin
 * 
 */
public class DataxEnterpriseChannelCriteria {
	protected String orderByClause;

	protected boolean distinct;

	protected List<Criteria> oredCriteria;

	public DataxEnterpriseChannelCriteria() {
		oredCriteria = new ArrayList<Criteria>();
	}

	public void setOrderByClause(String orderByClause) {
		this.orderByClause = orderByClause;
	}

	public String getOrderByClause() {
		return orderByClause;
	}

	public void setDistinct(boolean distinct) {
		this.distinct = distinct;
	}

	public boolean isDistinct() {
		return distinct;
	}

	public List<Criteria> getOredCriteria() {
		return oredCriteria;
	}

	public void or(Criteria criteria) {
		oredCriteria.add(criteria);
	}

	public Criteria or() {
		Criteria criteria = createCriteriaInternal();
		oredCriteria.add(criteria);
		return criteria;
	}

	public Criteria createCriteria() {
		Criteria criteria = createCriteriaInternal();
		if (oredCriteria.size() == 0) {
			oredCriteria.add(criteria);
		}
		return criteria;
	}

	protected Criteria createCriteriaInternal() {
		Criteria criteria = new Criteria();
		return criteria;
	}

	public void clear() {
		oredCriteria.clear();
		orderByClause = null;
		distinct = false;
	}

	protected abstract static class GeneratedCriteria {
		protected List<Criterion> criteria;

		protected GeneratedCriteria() {
			super();
			criteria = new ArrayList<Criterion>();
		}

		public boolean isValid() {
			return criteria.size() > 0;
		}

		public List<Criterion> getAllCriteria() {
			return criteria;
		}

		public List<Criterion> getCriteria() {
			return criteria;
		}

		protected void addCriterion(String condition) {
			if (condition == null) {
				throw new RuntimeException("Value for condition cannot be null");
			}
			criteria.add(new Criterion(condition));
		}

		protected void addCriterion(String condition, Object value,
				String property) {
			if (value == null) {
				throw new RuntimeException("Value for " + property
						+ " cannot be null");
			}
			criteria.add(new Criterion(condition, value));
		}

		protected void addCriterion(String condition, Object value1,
				Object value2, String property) {
			if (value1 == null || value2 == null) {
				throw new RuntimeException("Between values for " + property
						+ " cannot be null");
			}
			criteria.add(new Criterion(condition, value1, value2));
		}

		public Criteria andEntCodeIsNull() {
			addCriterion("FC_ENTCODE is null");
			return (Criteria) this;
		}

		public Criteria andEntCodeIsNotNull() {
			addCriterion("FC_ENTCODE is not null");
			return (Criteria) this;
		}

		public Criteria andEntCodeEqualTo(String value) {
			addCriterion("FC_ENTCODE =", value, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeNotEqualTo(String value) {
			addCriterion("FC_ENTCODE <>", value, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeGreaterThan(String value) {
			addCriterion("FC_ENTCODE >", value, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeGreaterThanOrEqualTo(String value) {
			addCriterion("FC_ENTCODE >=", value, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeLessThan(String value) {
			addCriterion("FC_ENTCODE <", value, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeLessThanOrEqualTo(String value) {
			addCriterion("FC_ENTCODE <=", value, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeLike(String value) {
			addCriterion("FC_ENTCODE like", value, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeNotLike(String value) {
			addCriterion("FC_ENTCODE not like", value, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeIn(List<String> values) {
			addCriterion("FC_ENTCODE in", values, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeNotIn(List<String> values) {
			addCriterion("FC_ENTCODE not in", values, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeBetween(String value1, String value2) {
			addCriterion("FC_ENTCODE between", value1, value2, "entCode");
			return (Criteria) this;
		}

		public Criteria andEntCodeNotBetween(String value1, String value2) {
			addCriterion("FC_ENTCODE not between", value1, value2, "entCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeIsNull() {
			addCriterion("FC_SERVICECODE is null");
			return (Criteria) this;
		}

		public Criteria andServiceCodeIsNotNull() {
			addCriterion("FC_SERVICECODE is not null");
			return (Criteria) this;
		}

		public Criteria andServiceCodeEqualTo(String value) {
			addCriterion("FC_SERVICECODE =", value, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeNotEqualTo(String value) {
			addCriterion("FC_SERVICECODE <>", value, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeGreaterThan(String value) {
			addCriterion("FC_SERVICECODE >", value, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeGreaterThanOrEqualTo(String value) {
			addCriterion("FC_SERVICECODE >=", value, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeLessThan(String value) {
			addCriterion("FC_SERVICECODE <", value, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeLessThanOrEqualTo(String value) {
			addCriterion("FC_SERVICECODE <=", value, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeLike(String value) {
			addCriterion("FC_SERVICECODE like", value, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeNotLike(String value) {
			addCriterion("FC_SERVICECODE not like", value, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeIn(List<String> values) {
			addCriterion("FC_SERVICECODE in", values, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeNotIn(List<String> values) {
			addCriterion("FC_SERVICECODE not in", values, "serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeBetween(String value1, String value2) {
			addCriterion("FC_SERVICECODE between", value1, value2,
					"serviceCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeNotBetween(String value1, String value2) {
			addCriterion("FC_SERVICECODE not between", value1, value2,
					"serviceCode");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdIsNull() {
			addCriterion("FI_SYS_RECEIVE_ID is null");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdIsNotNull() {
			addCriterion("FI_SYS_RECEIVE_ID is not null");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdEqualTo(Long value) {
			addCriterion("FI_SYS_RECEIVE_ID =", value, "sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdNotEqualTo(Long value) {
			addCriterion("FI_SYS_RECEIVE_ID <>", value, "sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdGreaterThan(Long value) {
			addCriterion("FI_SYS_RECEIVE_ID >", value, "sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdGreaterThanOrEqualTo(Long value) {
			addCriterion("FI_SYS_RECEIVE_ID >=", value, "sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdLessThan(Long value) {
			addCriterion("FI_SYS_RECEIVE_ID <", value, "sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdLessThanOrEqualTo(Long value) {
			addCriterion("FI_SYS_RECEIVE_ID <=", value, "sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdIn(List<Long> values) {
			addCriterion("FI_SYS_RECEIVE_ID in", values, "sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdNotIn(List<Long> values) {
			addCriterion("FI_SYS_RECEIVE_ID not in", values, "sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdBetween(Long value1, Long value2) {
			addCriterion("FI_SYS_RECEIVE_ID between", value1, value2,
					"sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysReceiveIdNotBetween(Long value1, Long value2) {
			addCriterion("FI_SYS_RECEIVE_ID not between", value1, value2,
					"sysReceiveId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdIsNull() {
			addCriterion("FI_SYS_SEND_ID is null");
			return (Criteria) this;
		}

		public Criteria andSysSendIdIsNotNull() {
			addCriterion("FI_SYS_SEND_ID is not null");
			return (Criteria) this;
		}

		public Criteria andSysSendIdEqualTo(Long value) {
			addCriterion("FI_SYS_SEND_ID =", value, "sysSendId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdNotEqualTo(Long value) {
			addCriterion("FI_SYS_SEND_ID <>", value, "sysSendId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdGreaterThan(Long value) {
			addCriterion("FI_SYS_SEND_ID >", value, "sysSendId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdGreaterThanOrEqualTo(Long value) {
			addCriterion("FI_SYS_SEND_ID >=", value, "sysSendId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdLessThan(Long value) {
			addCriterion("FI_SYS_SEND_ID <", value, "sysSendId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdLessThanOrEqualTo(Long value) {
			addCriterion("FI_SYS_SEND_ID <=", value, "sysSendId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdIn(List<Long> values) {
			addCriterion("FI_SYS_SEND_ID in", values, "sysSendId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdNotIn(List<Long> values) {
			addCriterion("FI_SYS_SEND_ID not in", values, "sysSendId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdBetween(Long value1, Long value2) {
			addCriterion("FI_SYS_SEND_ID between", value1, value2, "sysSendId");
			return (Criteria) this;
		}

		public Criteria andSysSendIdNotBetween(Long value1, Long value2) {
			addCriterion("FI_SYS_SEND_ID not between", value1, value2,
					"sysSendId");
			return (Criteria) this;
		}

		public Criteria andFlagIsNull() {
			addCriterion("FI_FLAG is null");
			return (Criteria) this;
		}

		public Criteria andFlagIsNotNull() {
			addCriterion("FI_FLAG is not null");
			return (Criteria) this;
		}

		public Criteria andFlagEqualTo(Short value) {
			addCriterion("FI_FLAG =", value, "flag");
			return (Criteria) this;
		}

		public Criteria andFlagNotEqualTo(Short value) {
			addCriterion("FI_FLAG <>", value, "flag");
			return (Criteria) this;
		}

		public Criteria andFlagGreaterThan(Short value) {
			addCriterion("FI_FLAG >", value, "flag");
			return (Criteria) this;
		}

		public Criteria andFlagGreaterThanOrEqualTo(Short value) {
			addCriterion("FI_FLAG >=", value, "flag");
			return (Criteria) this;
		}

		public Criteria andFlagLessThan(Short value) {
			addCriterion("FI_FLAG <", value, "flag");
			return (Criteria) this;
		}

		public Criteria andFlagLessThanOrEqualTo(Short value) {
			addCriterion("FI_FLAG <=", value, "flag");
			return (Criteria) this;
		}

		public Criteria andFlagIn(List<Short> values) {
			addCriterion("FI_FLAG in", values, "flag");
			return (Criteria) this;
		}

		public Criteria andFlagNotIn(List<Short> values) {
			addCriterion("FI_FLAG not in", values, "flag");
			return (Criteria) this;
		}

		public Criteria andFlagBetween(Short value1, Short value2) {
			addCriterion("FI_FLAG between", value1, value2, "flag");
			return (Criteria) this;
		}

		public Criteria andFlagNotBetween(Short value1, Short value2) {
			addCriterion("FI_FLAG not between", value1, value2, "flag");
			return (Criteria) this;
		}

		public Criteria andEntCodeLikeInsensitive(String value) {
			addCriterion("upper(FC_ENTCODE) like", value.toUpperCase(),
					"entCode");
			return (Criteria) this;
		}

		public Criteria andServiceCodeLikeInsensitive(String value) {
			addCriterion("upper(FC_SERVICECODE) like", value.toUpperCase(),
					"serviceCode");
			return (Criteria) this;
		}
	}

	public static class Criteria extends GeneratedCriteria {

		protected Criteria() {
			super();
		}
	}

	public static class Criterion {
		private String condition;

		private Object value;

		private Object secondValue;

		private boolean noValue;

		private boolean singleValue;

		private boolean betweenValue;

		private boolean listValue;

		private String typeHandler;

		public String getCondition() {
			return condition;
		}

		public Object getValue() {
			return value;
		}

		public Object getSecondValue() {
			return secondValue;
		}

		public boolean isNoValue() {
			return noValue;
		}

		public boolean isSingleValue() {
			return singleValue;
		}

		public boolean isBetweenValue() {
			return betweenValue;
		}

		public boolean isListValue() {
			return listValue;
		}

		public String getTypeHandler() {
			return typeHandler;
		}

		protected Criterion(String condition) {
			super();
			this.condition = condition;
			this.typeHandler = null;
			this.noValue = true;
		}

		protected Criterion(String condition, Object value, String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.typeHandler = typeHandler;
			if (value instanceof List<?>) {
				this.listValue = true;
			} else {
				this.singleValue = true;
			}
		}

		protected Criterion(String condition, Object value) {
			this(condition, value, null);
		}

		protected Criterion(String condition, Object value, Object secondValue,
				String typeHandler) {
			super();
			this.condition = condition;
			this.value = value;
			this.secondValue = secondValue;
			this.typeHandler = typeHandler;
			this.betweenValue = true;
		}

		protected Criterion(String condition, Object value, Object secondValue) {
			this(condition, value, secondValue, null);
		}
	}
}